<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
Route::get('peitao/list',[\App\Http\Controllers\FactoryController::class,'peitao']); //配套列表
Route::get('tag/list',[\App\Http\Controllers\FactoryController::class,'tag']); //标签列表

//发送短信
Route::post('sendVerifyCode',[\App\Http\Controllers\SendMessageController::class,'send']);
Route::get('factory/list',[\App\Http\Controllers\FactoryController::class,'list']); //浦源列表
Route::middleware('auth:sanctum')->get('factory/view/list',[\App\Http\Controllers\FactoryController::class,'viewList']); //浦源列表
Route::get('factory/detail',[\App\Http\Controllers\FactoryController::class,'detail']); //浦源详情
Route::get('factory/recommend',[\App\Http\Controllers\FactoryController::class,'recommend']); //浦源推荐
Route::get('price/list',[\App\Http\Controllers\FilterController::class,'price']);// 价格区间
Route::get('area/list',[\App\Http\Controllers\FilterController::class,'area']);//浦源区间
Route::get('type/list',[\App\Http\Controllers\FilterController::class,'type']); //类型区间
Route::get('nature/list',[\App\Http\Controllers\FilterController::class,'nature']); //租赁性质
Route::get('city/list',[\App\Http\Controllers\CityController::class,'list']);//城市性质
Route::get('city/default',[\App\Http\Controllers\CityController::class,'default']); //默认城市
Route::post('loginCode',[\App\Http\Controllers\AuthController::class,'loginCode']);

Route::post('getPhoneNumber',[\App\Http\Controllers\AuthController::class,'getPhoneNumber']);
Route::post('loginByPassword',[\App\Http\Controllers\AuthController::class,'loginByPassword']);
Route::post('loginByPhone',[\App\Http\Controllers\AuthController::class,'loginByPhone']);
Route::post('loginByWechat',[\App\Http\Controllers\AuthController::class,'loginByWechat']);
Route::middleware('auth:sanctum')->get('factory/release/list',[App\Http\Controllers\AuthController::class,'releaseList']); //浦源点赞
//提交浦源
Route::middleware('auth:sanctum')->post('factory/save',[\App\Http\Controllers\FactoryController::class,'save']);

//地图买房
Route::get('city/factory/list',[App\Http\Controllers\CityController::class,'factoryList']);
Route::get('city/factory/second',[\App\Http\Controllers\CityController::class,'second']);//地图找房第二层
//收藏
Route::middleware('auth:sanctum')->any('factory/like',[App\Http\Controllers\LikeController::class,'like']); //浦源点赞
Route::middleware('auth:sanctum')->any('factory/unlike',[App\Http\Controllers\LikeController::class,'unlike']); //浦源取消点赞
Route::get('factory/isLike',[App\Http\Controllers\LikeController::class,'isLike']); //浦源是否点赞
Route::any('factory/like/list',[App\Http\Controllers\LikeController::class,'likeList']); //浦源点赞列表
//装修报
Route::middleware('auth:sanctum')->post('zhuangxiu/save',[\App\Http\Controllers\ZhuangxiuController::class,'save']); //装修报价
Route::post('upload',[\App\Http\Controllers\UploadController::class,'upload']); //上传图片
Route::post('qiuzu',[\App\Http\Controllers\BiaodanController::class,'qiuzu']); //求租表单
Route::post('qiumai',[\App\Http\Controllers\BiaodanController::class,'qiumai']);//求买表单
//策略类型
Route::get('celueType',[\App\Http\Controllers\CelueController::class,'celueType']); //策略类型
Route::get('celue/list',[\App\Http\Controllers\CelueController::class,'list']); //策略列表
Route::get('celue/detail',[\App\Http\Controllers\CelueController::class,'detail']); //策略列表
Route::any('qiniu/token', [\App\Http\Controllers\UploadController::class,'token']);//获取七牛上传token
Route::get('floor',[\App\Http\Controllers\FactoryController::class,'floor']);

//商家资源
Route::get('merchant/type',[\App\Http\Controllers\BusineController::class,'type']); //商家类型
Route::get('merchant/list',[\App\Http\Controllers\BusineController::class,'list']); //商家列表
Route::get('merchant/detail',[\App\Http\Controllers\BusineController::class,'detail']); //商家详情

//关于我们
Route::get('about',[\App\Http\Controllers\SettingController::class,'about']); //关于我们
Route::get('lunbo',[\App\Http\Controllers\SettingController::class,'lunbo']); //关于我们
Route::get('agreement',[\App\Http\Controllers\SettingController::class,'agreement']); //用户协议
Route::get('yinsi',[\App\Http\Controllers\SettingController::class,'yinsi']); //隐私政策
Route::get('contact_phone',[\App\Http\Controllers\SettingController::class,'contactPhone']); //联系电话
Route::get('hot_key',[\App\Http\Controllers\SettingController::class,'hotKey']); //热门搜索


